// DSSocketServer.h: interface for the DSSocketServer class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_JSSOCKETSERVER_H__099F998B_9A61_48CE_9CBD_44BB223EBD67__INCLUDED_)
#define AFX_JSSOCKETSERVER_H__099F998B_9A61_48CE_9CBD_44BB223EBD67__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "stdinc.h"
#include "basic/thread_object.h"

class SP_IocpServer;
class RMT_CLASS_EXPORT DSSocketServer : private HT::ThreadObject
{
public:
	DSSocketServer();
	virtual ~DSSocketServer();

	virtual int Open (int nport);
	unsigned int GetClientsNumber ();
	void Close ();

protected:
	virtual void OnExit();
	virtual void Run();

	SP_IocpServer* m_pServer;
};

#endif // !defined(AFX_JSSOCKETSERVER_H__099F998B_9A61_48CE_9CBD_44BB223EBD67__INCLUDED_)
